<div id="addUser" style="margin: 30px 0px 0px 50px;">
    <form action="" method="post" enctype="multipart/form-data">
        <?php echo validation_errors('<div class="errors">', '</div>'); ?>
        <p class="errors" ><?php echo $errors; ?></p>
        <div class="input-group col-md-4">
            <span class="input-group-addon"><i class="glyphicon glyphicon-briefcase"></i></span>
            <input type="text" class="form-control" name="name" placeholder="Product Name">
        </div>
        <div class="add_user" style="margin-top: 15px;">
            <input type="text" class="form-control" name="price" placeholder="Price">
        </div>
        <div class="add_user" style="margin-top: 15px; width: 50px;">
            <input type="text" class="form-control sale" name="sale" placeholder="Sale">
        </div>
        <div class="add_user" style="margin-top: 15px;">
            <textarea  rows="6" class="form-control description_product" name="description" placeholder="Description"></textarea>
        </div>
        <div class="add_user" style="margin: 15px 0px;">
            <input id="images" class="help-block" type="file" name="images[]" multiple size="25"/>
        </div>
        <div class="container" style="margin: 15px 0px;">
            <p style="font-weight: bold">--Chọn category--</p>
            <?php if ($listcate != NULL) { ?>
                <?php $i = 1;
                foreach ($listcate as $data) { ?>
                    <input type="checkbox" name="category[]" value="<?php echo $data['cate_id']; ?>"><?php echo $data['cate_name']; ?><br/>
                <?php }
            } ?>
        </div>
        <div class="add_user" style="margin: 15px 0px;">
            <label><select name="brand">
                    <option selected value="0">--Chọn Brand--</option>
                    <?php if($listbrand != NULL){ ?>
                        <?php $i=1; foreach($listbrand as $data){ ?>
                            <option value="<?php echo $data['brand_id']; ?>"><?php echo $data['brand_name']; ?></option>
                        <?php } } ?>
                </select></label>
        </div>
        <div class="add_user" style="margin: 15px 0px;">
            <label><select name="new">
                <option value="1">Có</option>
                <option value="0">Không</option>
            </select></label>
        </div>
        <input type="submit" name="submit" class="btn btn-default" value="Insert">
    </form>
</div>